package com.kysd.uploadfile.exception;

/**
 * 上传文件exception
 * @author liangjinquan
 *
 */
public class UploadException extends Exception{
	
	private static final long serialVersionUID = -3317249364105502135L;
	
	/**
	 * 错误信息
	 */
	private String message;
	
	/**
	 * 状态码 0=正常 -1=异常
	 */
	private Integer status = -1;

	public UploadException() {
		super();
	}
	
	public UploadException(Throwable cause) {
		super(cause);
	}
	
	public UploadException(String message) {
		super(message);
		this.message = message;
	}
	
	public UploadException(String message, Integer status) {
		super(message);
		this.message = message;
		this.status = status;
	}
	
	public UploadException(String message, Integer status, Throwable cause) {
		super(message, cause);
		this.message = message;
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
